package com.niubility.server.Impl;

import com.niubility.dao.RefleckDao;
import com.niubility.entity.Refleck;
import com.niubility.server.IRefleckServer;
import com.niubility.vo.RefleckLoad;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
/**
 * @ClassName: RefleckServer
 * @Description: 调用dao层方法
 * @author: 张家乐
 * @DATE: 2018/1/25
 */
@Service("refleckServer")
public class RefleckServer implements IRefleckServer{
    @Resource
    private RefleckDao refleckDao;

    public int Save(Refleck refleck) {
        return refleckDao.save(refleck);
    }

    public int Delete(int i) {
        return refleckDao.delete(i);
    }

    public int Update(Refleck refleck) {
        return refleckDao.update(refleck);
    }

    public int UpdateMark(int id) {
        return refleckDao.updateMark(id);
    }

    public Refleck LoadById(int id) {
        return refleckDao.loadById(id);
    }

    public List<Refleck> LoadByDate(String s){
        return refleckDao.loadByDate(s);
    }

    public List<RefleckLoad> LoadAll(Integer page, Integer displayCount) {
        return refleckDao.loadAll(page,displayCount);
    }

    public int LoadCount() {
        return refleckDao.loadCount();
    }

    public int LoadIdById(Integer id) {
        return refleckDao.loadIdById(id);
    }
}
